HTTP Streams interest Class
Methods
post
(
Void
-
$_REQUEST
Used by HTTP clients to create a new interest in the system.
Parameters:
-
$_REQUESTArray-
[title]String optionalRequired. The title of the interest.
-
[publisherId=Users::communityId()]String optionalOptional. Defaults to the current community's id.
-
[subscribe]String optionalOptional. Defauls to false. Whether to subscribe rather than just join the interest stream.
-
Returns:
Void:
Events
Streams/interest/delete
After
Occurs when the logged-in user has successfully removed an interest via HTTP
Event Payload:
-
publisherIdStringThe publisher of the interest stream
-
titleStringThe title of the interest
-
userUsers_UserThe logged-in user
-
streamStreams_StreamThe interest stream
-
myInterestsStreams_StreamThe user's "Streams/user/interests" stream
Streams/interest/post
After
Occurs when the logged-in user has successfully added an interest via HTTP
Event Payload:
-
publisherIdStringThe publisher of the interest stream
-
titleStringThe title of the interest
-
subscribeBooleanWhether the user subscribed to the interest stream
-
userUsers_UserThe logged-in user
-
streamStreams_StreamThe interest stream
-
myInterestsStreams_StreamThe user's "Streams/user/interests" stream